<?
//inculde即可以使用data数据。本页所有的data数据，倾在controller都处理好
include_once("../../../common/modules/checkA.php");
include_once("../../../../config.php");
include_once("../controller/detail-list.php");
?>





<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <?php include ROOT_PATH_.'/controller/common/modules/head.php'; ?>
    <link href="../asset/css/member.css"   rel="stylesheet" type="text/css"/>

</head>



<?
//用来判断当前系统属于什么板块
//$system_part = $plate['mid'];
//include_once("select_datas.php");
//
//
////获取本页用到的单位的名字
//$unit_nid_list=transform_2darray_in_1darray_with_new_key($detail,"nid","unit");
//$unit_nid_list_str=implode("','",$unit_nid_list);
//$unit_list=select_lines_all_items($table_Prefix."unit","","nid in ('".$unit_nid_list_str."')","");
//$unit_name_list=transform_2darray_in_1darray_with_new_key($unit_list,"nid","sname");

?>




<body>

<div id="topbar">     <?php include ROOT_PATH_.'/controller/common/modules/topbar.php'; ?> </div>

<div id="container" class="<? echo $system_part ?>">

    <div id="maincontent">

        <div id="sidebar">
            <?php include ROOT_PATH_.'/controller/common/modules/sidebar.php'; ?>
        </div>




<div id="content">


    <?php $page_title='用户资料';?>
    <?php include ROOT_PATH_.'/controller/common/modules/mod-page-title.php'; ?>

    <?php include 'modules/mod-search.php'; ?>





<!-- 用$system_part .list_boxes来控制来到确认板块信息显示-->
<div class="list-box">




<div class="list-boxes layui-form">



<table class="layui-table">
  <colgroup>
    <col width="150">
      <col width="220">

      <col  >
      <col  >

      <col width="120">

  </colgroup>
  <thead>
    <tr>
      <th>姓名</th>
      <th>电话</th>
      <th>学生信息</th>
      <th>注册时间</th>
      <th>操作</th>
    </tr>
  </thead>
  <tbody>



<?php for ($i = 0; $i < $_quantity_per_page; $i++) {?>



<tr id="item<?echo $detail[$i]['nid']?>" <?if($applymodify['nid']){echo "style='color:red'";$status="审核中";}else{$status="正常";}?>>


<td style="color:<?if($detail[$i]['sex']=="1"){echo "#1e9fff";}elseif($detail[$i]['sex']=="2"){echo "#ff1e7b";}?>">
    <?echo $detail[$i]['nickname']?>
    <span >
        <?if($detail[$i]['sex']=="1"){?>
        <i class="fa fa-male" aria-hidden="true">  </i>
        <?}elseif($detail[$i]['sex']=="2"){?>
        <i class="fa fa-female" aria-hidden="true"></i>
        <?}?>
    </span>
</td>


<td><?echo $detail[$i]['phone']?></td>

<td>
<!--        循环所有学生信息-->
    <?
        foreach ($detail[$i]['member_child'] as $key => $value)
        {?>
          <div> <b><?echo $value['name']?></b>  <?echo $value['school']?> - <?echo $value['grade']?> - <?echo $value['class_']?>
        <?
        if($key==3){echo "...";break;}
        ;}?>

</td>
    <td><?echo $detail[$i]['createtime']?></td>



<td>
    <a href="detail-edit.php?<? echo $data['url_parameter'] ?>&nid=<?echo $detail[$i]['nid']?>"
       class="layui-btn   layui-btn-sm" >
        <i class="fa fa-file-text-o" aria-hidden="true"></i>
        用户信息
    </a>
</td>





  </td>

    </tr>
<?}?>


  </tbody>
</table>






</div>


<div class="list-box-function">

    <?php include 'modules/page_numbers.php'; ?>

</div>




<!--list-box end-->
</div>

<!--content端點01-->
</div>
<!--maincontent端點01-->
<br class="clearfloat"/>
</div>
<!--container端點01-->
</div>






<?php include ROOT_PATH_.'/controller/common/modules/footer.php'; ?>

</body>
</html>
